package com.jnevision.replacecardapprovalrecords.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 补卡审批记录
 * </p>
 *
 * @author gavin
 * @since 2019-07-15
 */
@TableName("b_replace_card_approval_records")
public class ReplaceCardApprovalRecords extends Model<ReplaceCardApprovalRecords> {
    private static final long serialVersionUID = -1474258478078605421L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @TableField("replace_card_id")
    private String replaceCardId;

    @TableField("user_id")
    private String userId;

    @TableField("approval_time")
    private LocalDateTime approvalTime = LocalDateTime.now();

    @TableField("result")
    private Integer result;

    @TableField("reason")
    private String reason;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReplaceCardId() {
        return replaceCardId;
    }

    public void setReplaceCardId(String replaceCardId) {
        this.replaceCardId = replaceCardId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public LocalDateTime getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(LocalDateTime approvalTime) {
        this.approvalTime = approvalTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReplaceCardApprovalRecords{" + "id=" + id + ", replaceCardId=" + replaceCardId + ", userId=" + userId
            + ", approvalTime=" + approvalTime + ", result=" + result + ", reason=" + reason + "}";
    }
}